package com.yanchangapp.adapter._n_manage;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanchangapp.R;
import com.yanchangapp.model.bean.LinkWorkItemBean;
import com.yanchangapp.model.bean.WorkItemBean;

import java.util.List;

/**
 * Created by apple on 2019-10-12.
 * description:主界面 关联工作项Adapter
 */
public class LinkWorkItemAdapter extends BaseQuickAdapter<WorkItemBean, BaseViewHolder> {

    public LinkWorkItemAdapter(@Nullable List<WorkItemBean> data) {
        super(R.layout.item_link_work_item, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WorkItemBean item) {
        helper.setText(R.id.tvItemName,item.getTitle());
    }
}
